package com.danger.Activtiy;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.ypy.eventbus.EventBus;

public class ShowActivity extends AppCompatActivity {

    private Button send_button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show);

        initView();
        initEvent();

    }

    public void initView() {
        send_button = (Button) findViewById(R.id.send_button);
    }

    private void initEvent() {
        send_button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                EventBus.getDefault().post("this is message");
            }
        });
    }
}